#include "log.h"
#include "threadpool.h"
static class taskqueue tq;


void* task(void *)
{
    while (1)
    {
        tq.GetTask();
    }
}
void* outtask(void*)
{
    lg(DEBUG,"Hello bit%d",i);
    return nullptr;
}

void* funp(void *) // 一直添加任务
{
    while (1)
    {
        tq.AddTask(outtask);
    }
}

int main()
{
    class threadpool tp(funp, task);
    tp.~threadpool();
    return 0;
}
